home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / to_string < prev    next >
Text File  |  2001-04-06  |  728b  |  23 lines

  1. SYNOPSIS
  2.         string to_string(mixed)
  3.  
  4.         (string)<value>
  5.  
  6. DESCRIPTION
  7.         The argument is converted to a string. Works with int, float,
  8.         object, arrays, symbols, strings, and closures.
  9.  
  10.         Converts closures into an appropriate name (this has mostly
  11.         debugging purposes).
  12.  
  13.         CAVEAT: Arrays are considered exploded strings, ie. arrays of
  14.         char codes, and are 'imploded' up to the first 0 or the first
  15.         non-number entry, whatever comes first. That means that
  16.         to_string( ({ 33, 34 }) ) will return "12" and not "({ 33, 34 })".
  17.  
  18. HISTORY
  19.         LDMud 3.2.8 adds lambda closures to the accepted data types.
  20.  
  21. SEE ALSO
  22.         to_array(E), to_int(E), to_object(E), sprintf(E)
  23.